﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public class ConditionSet
    { 
        private List<Condition> listOfConditions;

        public List<Condition> ListOfConditions
        {
            get { return listOfConditions; }
            set { listOfConditions = value; }
        }

        public ConditionSet()
        {            
            listOfConditions = new List<Condition>();                             
        }

        public bool CalcConditionSet()
        {
            foreach (Condition condItem in listOfConditions)
            {                
                if (condItem.GetConditionResault() == false)
                {
                    return false;
                }
            }
            return true;
        }

    }

   
}
